<div style="margin:10px 10px 5px 10px;">
<table class="am-table am-table-striped am-table-hover center-table">
  <thead>
  <tr>
    <th>彩种</th>
    <th>总投注</th>
    <th>输赢</th>
  </tr>
  </thead>
  <tbody>
  </tbody>
</table>
</div>

<script>
    ME.cb = function() {
        ME.cb = null;

        var table = $(".center-table tbody");
        table.empty();

        var arr = get_game_list();
        for (var i in arr) {
            CMD.find_bet_profit(context.user.user.id, arr[i], function(r) {
                var tr = $("<tr></tr>");
                tr.append("<td>" + get_game_display_name(r.type) + "</td>");
                tr.append("<td>" + r.bet/100 + "</td>");
                if (r.amount >= 0)
                    tr.append("<td class='red'>" + r.amount/100 + "</td>")
                else
                    tr.append("<td class='green'>" + r.amount/100 + "</td>");
                table.append(tr);
            });
        }
    };
</script>
